package service;

import dao.UserDao;
import pojo.User;
import utils.UserDaoFactory;

public class UserServiceImpl implements UserService {
    private UserDao dao;
    public UserServiceImpl(){}
    public UserServiceImpl(UserDao dao){
        this.dao=dao;
    }
    @Override
    public void save(User user) {
        dao.save(user);
    }
    public void setUserDao(UserDao userDao){
        this.dao = userDao;
    }
}
